package com.yh.doing.state_pattern.file;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-12 00:18
 * @problem:
 **/
public class Client {
    public static void main(String[] args) {
        Context context = new Context();

        context.setCurrentStatus(new 未锁定FileState());
        context.delete();
        context.锁定();
        context.delete();
        context.取消锁定();
        context.delete();
        context.完全锁定();
        context.select();
    }
}
